﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xyz.Hrs.Shared.ServiceContracts;
using Xyz.Hrs.Server.HrsManagementBL;

namespace Xyz.Hrs.Shared.HrsServices
{
    public class AppointmentManagementService:IAppointmentManagementService
    {
        public void CreateAppointment(int doctorId, DateTime date)
        {
            AppointmentManager.CreateAppointment(doctorId, date);
        }
        public DataContracts.DataObjects.AppointmentDTO[] GetAppointments(int[] doctorIds)
        {
            return AppointmentManager.GetAppointments(doctorIds);
        }
        public DataContracts.DataObjects.AppointmentDetailsDTO[] GetMyAppointments()
        {
            return AppointmentManager.GetMyAppointments();
        }
        public DataContracts.DataObjects.AppointmentDetailsDTO ConcludeAppointment(int appointmentId, string result, DataContracts.Enums.EAppointmentConcludeReason state)
        {
            return AppointmentManager.ConcludeAppointment(appointmentId, result, state);
        }
    }
}
